<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>测试列表页</title>
	<link href="/static/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="/static/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="/static/css/dialog.css" rel="stylesheet" type="text/css" />

	<script src="/static/Js/jquery-1.4.2.js" type="text/javascript"></script>
	<script src="/static/js/layout.js" type="text/javascript"></script>
	<script src="/static/js/dialog.js" type="text/javascript"></script>
	<script src="/static/js/form.js" type="text/javascript"></script>

	<script>
		var RootPath = "http://localhost:8080";
		var FormCodeUrl = RootPath + "/base";
		var FormQuery = "/query";
		var FormTableId = "GridView1";
		var TablePageSize = 10;
		var FormDeleteMethod = "delete";
		$(function() {
			SearchPage(1);
		});

function InsertClick() {
	var url = "TestSubmit.html";
	OpenWindow(url, "表单管理", 800, 450, "1", "执行成功！", "执行失败！")
}

function UpdateClick() {	
	var container = document.getElementById("content");
	var selectItem = CheckNumber(container);
	
	if (selectItem.length != 1) {
		Alert('请选择一项！');
		return false;
	} else {
		var url = "TestSubmit.html?submitFormId=201709301616198d55d3c2af0d44c6990b41351b650e57&keyId="+selectItem[0];
		OpenWindow(url, "数据管理", 800, 450, "1", "执行成功！", "执行失败！")
	}
}

function DeleteClick() {

	var container = document.getElementById("content");
	var selectItem = CheckNumber(container);

	if (selectItem.length == 0) {
		Alert('请至少选择一项！');
		return false;
	} else {
		Confirm('确定要执行删除操作？', function() {
			//确定
			var ret = DeleteForm(selectItem);
			if (ret == "1") {
				Success("删除成功！",function(){
					location.href = location.href;
				});
			}

		});
	}
}

function ResetClick() {
    location.href = location.href;
}

	</script>
</head>
<body>
	<form id="myform">
		<input type="hidden" id="hidListFormId" name="hidListFormId" value="201711161723271cd7f3e54d1e4400ad8248dd6ba8090b" />
		<div class="container">
			<div class="hiddencalc fullheight w4"></div>
			<div class="fullheight calcwidth">
				<div class="fullwidth">
					<div class="buttonGroup h30">
						<input type="button" value="查询" id="btn_20171126181954da8a5e81459e43cfa0dc23cb25a05eca" onclick="SearchPage(1);" />
						<input type="button" value="新增" id="btn_201712231041146f3eaa4621ba4f41bfcf5c87d61ace1e" onclick="InsertClick();" />
						<input type="button" value="修改" id="btn_201712231041143cad8a7f9066421ba565f23c03ffe6d7" onclick="UpdateClick();" />
						<input type="button" value="删除" id="btn_201712231042571215253287ab40de80a8bb3836f3794a" onclick="DeleteClick();" />
						<input type="button" value="页面重置" id="btn_20171223104257a77b335b93fc4ae5aba4ed18182880bb" onclick="ResetClick();" />
					</div>
				</div>
			<div class="hiddencalc fullwidth h4"></div>
			<div class="formcontainer fullwidth">
				<div class="formitem halfwidth h30">
					<div class="label w150">
						<font class="labeltext">数据列1：</font>
					</div>
					<div class="control calcwidth">
						<input type="text" class="calcwidth" id="e11_20171204200204fefe18f9e11d4ba3a234eb79a046b9a1" name="e11_20171204200204fefe18f9e11d4ba3a234eb79a046b9a1" />
					</div>
				</div>
			</div>
			<div class="hiddencalc fullwidth h4"></div>
			<div id="content" class="fullwidth calcheight onlyscrolly">
				<table style="border-collapse: collapse;" id="GridView1" class="showDataTable fullwidth" border="1" cellspacing="0">
					<tr class="showDataTitle">
						<th scope="col" style="width: 50px;"><p onclick="SelectAll('content');" style="cursor: hand">全选</p></th>
						<th style="width: 50px;">序号</th>
						<th>数据列11</th>
						<th style="width:200px;">数据列2</th>
						<th style="width:200px;">数据列3</th>
					</tr>
					<tr class="showDataRow" style="display: none;">
						<td align="center"><input type="checkbox" value="{ActionId}" /></td>
						<td align="center">{IndexNumber}</td>
						<td><a href="javascript:void(0);" onclick="OpenWindow('TestSubmit.html?submitFormId=201709301616198d55d3c2af0d44c6990b41351b650e57&keyId={ActionId}', '数据管理', 800, 450, '1', '执行成功！', '执行失败！');">{ActionId}</a></td>
						<td style="text-align:center;">{ButtonText}</td>
						<td style="text-align:center;">{ButtonAction}</td>
					</tr>
				</table>
			</div>
			<div class="hiddencalc fullwidth h4"></div>
			<div class="fullwidth h30"><div id="displayPage"></div></div>
			<div class="hiddencalc fullwidth h4"></div>
			</div>
			<div class="hiddencalc fullheight w4"></div>
		</div>
	</form>
</body>
</html>